package common.model.compare;

import lombok.Data;

import java.util.Objects;

/**
 * @author 米泽鹏
 * @since 2022-3-8 下午 9:05
 */
@Data
public class BaseCompare {

	private Long id;

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof BaseCompare)) {
			return false;
		}
		BaseCompare that = (BaseCompare) o;
		return Objects.equals(getId(), that.getId());
	}

	@Override
	public int hashCode() {
		return Objects.hash(getId());
	}

}
